package com.spj.pojo;

import java.math.BigDecimal;

public class OrderItem {
	private int id;
	private int orderid;
	private int goodsid;
	private int nums;
	private BigDecimal price;
	private Good good;

	public OrderItem() {

	}

	public OrderItem(int id, int orderid, int goodsid, int nums, BigDecimal price, Good good) {
		super();
		this.id = id;
		this.orderid = orderid;
		this.goodsid = goodsid;
		this.nums = nums;
		this.price = price;
		this.good = good;
	}

	public int getGoodsid() {
		return goodsid;
	}

	public void setGoodsid(int goodsid) {
		this.goodsid = goodsid;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getOrderid() {
		return orderid;
	}

	public void setOrderid(int orderid) {
		this.orderid = orderid;
	}

	public int getNums() {
		return nums;
	}

	public void setNums(int nums) {
		this.nums = nums;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Good getGood() {
		return good;
	}

	public void setGood(Good good) {
		this.good = good;
	}

	@Override
	public String toString() {
		return "OrderItem [id=" + id + ", orderid=" + orderid + ", goodsid=" + goodsid + ", nums=" + nums + ", price="
				+ price + ", good=" + good + "]";
	}

}
